package com.knife.permission.entity;

import java.util.StringJoiner;

/**
 * 实现用户权限不可或缺的用户基础信息字段
 * @description
 * @since 1.0
 * @version 1.0
 * @author tianhao.luo@hand-china.com
 * @date 2022/1/2 9:58 下午
 */
public class UserInfo {
    private String employeeCode;

    private Long roleId;

    private Long userId;


    public UserInfo() {
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", UserInfo.class.getSimpleName() + "[", "]")
                .add("employeeCode='" + employeeCode + "'")
                .add("userId=" + userId)
                .toString();
    }

    public String getEmployeeCode() {
        return employeeCode;
    }

    public void setEmployeeCode(String employeeCode) {
        this.employeeCode = employeeCode;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
